package com.project.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.project.bean.ProductBean;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.ResultType;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface IProductMapper extends BaseMapper<ProductBean> {
    @Select("SELECT DISTINCT p_type FROM t_product;")
    @ResultType(String.class)
    List<String> findAllType();


}
